<?php

//1. Nhung tap tin fckeditor.php
include("fckeditor/fckeditor.php") ;

//2. Duong dan URL den thu muc fckeditor
$sBasePath = '/fck/fckeditor/';

//3. Khoi tao doi tuong fckeditor
$oFCKeditor = new FCKeditor('FCKeditor1') ;

//4.Thiet lap duong dan cho thuoc tinh BasePath
$oFCKeditor->BasePath	= $sBasePath ;

//5. Noi dung co san o fckeditor
$oFCKeditor->Value		= '';
//Thay doi kick thuoc cua fckeditor
$oFCKeditor->Width = '100%'; // hoac co the viet '70%'
$oFCKeditor->Height= 400; // hoac co the viet '70%'
$oFCKeditor->ToolbarSet ='Mytoolbar';
$oFCKeditor->Config['AutoDetectLanguage'] = false;
$oFCKeditor->Config['DefaultLanguage'] 	  = 'vi';
//6. Tao fckeditor
$oFCKeditor->Create() ;